package Stack_04.BasedOnTheLinkedList_02;

/*
 * @Author 罗
 * @date 2020/3/13 - 8:28 下午
 *
 */

public class ObjectNode <T>{
    private Object node;
    private ObjectNode nextNode;

    @Override
    public String toString() {
        return "ObjectNode{" +
                "node=" + node +
                '}';
    }

    public void setNode(T node) {
        this.node = node;
    }

    public void setNextNode(ObjectNode nextNode) {
        this.nextNode = nextNode;
    }

    public T getNode() {
        return (T)node;
    }

    public ObjectNode getNextNode() {
        return nextNode;
    }

    public ObjectNode() {
    }

    public ObjectNode(T node) {
        this.node = node;
    }
}
